package com.hilon.segment.mybatis.pojo.po.system;

import com.hilon.segment.mybatis.pojo.po.BaseDO;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.ToString;

/**
 * 系统用户表
 *
 * @author 万一
 */
@Data
@EqualsAndHashCode(callSuper = true)
@ToString(callSuper = true)
public class SysUserDO extends BaseDO {

    private String username;

    private String password;

    /**
     * 账户是否被锁定(是否冻结).
     */
    private Boolean accountNonLocked;

    /**
     * 账户是否可用(是否被删除).
     */
    private Boolean enabled;

    public SysUserDO() {
    }

    public SysUserDO(String username, String password, Boolean accountNonLocked, Boolean enabled) {
        super();
        this.username = username;
        this.password = password;
        this.accountNonLocked = accountNonLocked;
        this.enabled = enabled;
    }

    public SysUserDO(SysUserDO sysUserDO) {
        this(sysUserDO.username, sysUserDO.password, sysUserDO.accountNonLocked, sysUserDO.enabled);
    }
}
